package com.zbkj.service.service;

import com.github.pagehelper.PageInfo;
import com.zbkj.common.request.*;
import com.zbkj.common.model.agent.OrderTraceLogsRecordItems;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zbkj.common.response.*;

import java.util.List;
/**
* @author Caiyc
* @description OrderTraceLogsRecordItemsService 接口
* @date 2025-08-04
*/
public interface OrderTraceLogsRecordItemsService extends IService<OrderTraceLogsRecordItems> {

    Boolean create(OrderTraceLogsRecordItemsFrontSaveRequest orderTraceLogsRecordItemsFrontSaveRequest);

    /**
     * 分页查询订单溯源号段明细表
     * @param request 查询条件
     * @param pageParamRequest 分页对行
     * @return 查询结果
     */
    PageInfo<OrderTraceLogsRecordItemsPageDataResponse> getList(OrderTraceLogsRecordItemsSearchRequest request, PageParamRequest pageParamRequest);

    PageInfo<OrderTraceLogsRecordItemsFrontPageDataResponse> getListH5(OrderTraceLogsRecordItemsFrontSearchRequest request, PageParamRequest pageParamRequest);

    PageInfo<OrderTraceLogsRecordItemsFrontPageDataResponse> getListUserH5(OrderTraceLogsRecordItemsFrontSearchRequest request, PageParamRequest pageParamRequest);

    /**
    * 修改订单溯源号段明细表
    * @param orderTraceLogsRecordItemsRequest
    * @return
    */
    boolean update(OrderTraceLogsRecordItemsFrontSaveRequest orderTraceLogsRecordItemsRequest);

    /**
    * 批量删除
    * @param idList
    * @return
    */
    boolean batchDelete(List<Integer> idList);

    /**
    * 查询溯源套餐表详情
    * @param id
    * @return
    */
    OrderTraceLogsRecordItemsDetailResponse getDetails(Integer id);
    OrderTraceLogsRecordItemsDetailResponse getDetailsUserH5(Integer id);

    AddressDetailResponse getCurAddress(String longitude, String latitude);

    OrderTraceLogsRecordItemsExistsResponse checkExists(OrderTraceLogsRecordItemsExistsRequest request);
}